package com.jack.thinking.thread.core._1;

public class TestGetIdMethod {
	public static void main(String[] args) {
		GetId gi = new GetId();
		Thread[] ts = new Thread[20];
		for (int i = 0; i < ts.length; i++) {
			ts[i] = new Thread(gi);
		}
		for (int i = 0; i < ts.length; i++) {
			ts[i].start();
		}
	}
}

class GetId extends Thread{
	@Override
	public void run() {
		System.out.println("id: " + this.getId());
	}
}
